Skip to content

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where external @import url(…) at-rules were not at the top anymore due to the polyfills being pre-pended to the CSS output.

To solve this, we will inject a @layer __tw-properties; as a placeholder to at the top of the file. A body-less @layer is allowed to exist before any other rules in the file.

Later we inject all the polyfills at the bottom of the file inside the @layer __tw-polyfills; at-rule.

@RobinMalfait
Copy link
Member Author

Closing in favor of: #17506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants